Returns the vertex of the box depending on index.
Minimum vertex when iIndex = 0, maximum vertex otherwise.